<div>
    <h1 mat-dialog-title style="display:inline-block" mat-dialog-draggable>{{'dlg.userproperty-title' | translate}}</h1>
    <mat-icon (click)="onNoClick()" style="float:right;margin-right:-10px;margin-top:-10px;cursor:pointer;color:gray;">clear</mat-icon>
    <div mat-dialog-content *ngIf="data.editmode < 0">
		{{'msg.user-remove' | translate}} '{{data.user.username}}' ?
	</div>
    <div mat-dialog-content *ngIf="data.editmode >= 0">
        <div class="my-form-field" style="display: block;margin-bottom: 10px;">
            <span>{{'general.username' | translate}}</span>
            <input [(ngModel)]="data.user.username" type="text" width="100%" [readonly]="data.editmode == 0">
        </div>
        <div class="my-form-field" style="display: block;margin-bottom: 10px;">
            <span>{{'general.password' | translate}}</span>
            <input [(ngModel)]="data.user.password" type="text" width="100%" *ngIf="data.editmode >= 1">
            <input [(ngModel)]="data.user.password" type="text" width="100%" placeholder="******" *ngIf="data.editmode == 0">
        </div>
        <div class="my-form-field" style="display: block;margin-bottom: 10px;">
            <span>{{'dlg.userproperty-groups' | translate}}</span>
            <sel-options #seloptions [selected]="selectedGroups" [disabled]="isAdmin()" [options]="groups"></sel-options>
        </div>        
    </div>
    <div mat-dialog-actions style="float:right; margin-bottom:0px;padding-bottom:0px">
        <button mat-raised-button (click)="onNoClick()">{{'dlg.cancel' | translate}}</button>
        <button mat-raised-button [disabled]="!isValid(data.user.username)" color="primary" (click)="onOkClick()" cdkFocusInitial>{{'dlg.ok' | translate}}</button>
    </div>
</div>